<template>
  <div class="department-container">
    <div class="app-container">
      <el-card>
        <!-- 具体页面结构 -->
        <upload-img v-model="imgUrl" />
        {{ imgUrl }}
        <el-button type="info" @click="addRouter">添加动态路由</el-button>
      </el-card>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      imgUrl: ''
    }
  },
  methods: {
    addRouter() {
      this.$router.addRoutes([
        {
          path: '/aaaa',
          component: () => import('@/views/aaaa/aaaa'),
          hidden: true
        }

      ])
    }
  }
}
</script>
